<div class="post">
    <div class="title">
        <?php echo CHtml::link(CHtml::encode($data->name), array('products/view', 'id' => $data->id)); ?>
    </div>
    <div class="author">
        posted by <?php echo $data->user->username . ' on ' . date('Y-m-d',$data->created); ?>
        <br />
        clicks count: <?php echo $data->clicks_count; ?> Times
    </div>
    <div class="content">
        <?php echo CHtml::image($data->thumbnailSource, '', array('width' => 100, 'height' => 100)); ?>
        <?php
        $this->beginWidget('CMarkdown', array('purifyOutput'=>true));
        echo $data->summary;
        $this->endWidget();
        ?>
    </div>
    <div class="nav">
        <b>Tags:</b>
        <?php
        echo implode(', ', $data->tagLinks);
        ?>
        <br/>
        <?php
       echo CHtml::link("Comments ({$data->commentCount})", $data->url . '#comments');
        ?> | Last updated on <?php echo date('Y-m-d',$data->updated); ?>
    </div>
</div>


